package util;

/**
 * The parent class for all graphical elements in the game.
 */
public class Shape {
	
	protected PAGColor getColor(int position) {
		switch (position)
		{
		case 0:
			return PAGColor.EMPTY;
		case 1:
			return PAGColor.RED;
		case 2:
			return PAGColor.GREEN;
		case 3:
			return PAGColor.BLUE;
		case 4:
			return PAGColor.ORANGE;
		case 5:
			return PAGColor.PURPLE;
		case 6:
			return PAGColor.CYAN;
		case 7:
			return PAGColor.GREY;
		case 8:
			return PAGColor.PINK;
		case 9:
			return PAGColor.LIGHT_BLUE;
		default:
			return null;
		}
	}
	
	protected int getNumber(PAGColor color)
	{
		switch (color)
		{
		case EMPTY:
			return 0;
		case RED:
			return 1;
		case GREEN:
			return 2;
		case BLUE:
			return 3;
		case ORANGE:
			return 4;
		case PURPLE:
			return 5;
		case CYAN:
			return 6;
		case GREY:
			return 7;
		case PINK:
			return 8;
		case LIGHT_BLUE:
			return 9;
		default:
			return 0;
		}
	}
}
